import React from "react";
import { Divider, Form, Input, Button } from "antd";

function Home() {
  // const [form] = Form.useForm();

  const onFinish = values => {
    console.log(values);
  };

  return (
    <>
      <h3>基本信息</h3>
      <Divider />
      <Form
        labelCol={{ span: 4 }}
        wrapperCol={{ span: 8 }}
        layout="vertical"
        onFinish={onFinish}
      >
        <Form.Item label="企业名称" name="name">
          <Input allowClear placeholder="请输入企业名称" />
        </Form.Item>
        <Form.Item label="企业介绍" name="desc">
          <Input.TextArea allowClear placeholder="请输入企业简介" />
        </Form.Item>
        <Form.Item>
          <Button type="primary" block htmlType="submit">
            确定
          </Button>
        </Form.Item>
      </Form>
    </>
  );
}

export default Home;
